package com.gy.service;

import com.gy.mapper.QuYuMapper;
import com.gy.pojo.QuYu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuYuServiceImpl implements QuYuService {

    @Autowired
    QuYuMapper quYuMapper;
    @Override
    public List<QuYu> selectQY() {
        return quYuMapper.selectQY();
    }

    @Override
    public void addQY(QuYu quYu) {
        quYuMapper.addQY(quYu);
    }

    @Override
    public void deleteQY(int Qid) {
        quYuMapper.deleteQY(Qid);
    }

    @Override
    public int selectID(String Qname, String Qlou, int Qfang) {

        return quYuMapper.selectID(Qname, Qlou, Qfang);
    }

    @Override
    public List<String> disQname() {
        return quYuMapper.disQname();
    }

    @Override
    public List<String> disQlou() {
        return quYuMapper.disQlou();
    }

    @Override
    public List<Integer> disQfang() {
        return quYuMapper.disQfang();
    }

    @Override
    public int maxQid() {
        return quYuMapper.maxQid();
    }


}
